from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, SubmitField
from wtforms.validators import DataRequired


class RegisForm(FlaskForm):
    user = StringField('Username', validators=[DataRequired()])
    pwd = PasswordField('Pasword',  validators=[DataRequired()])
    pwd2 = PasswordField('password', validators=[DataRequired()])
    phone = StringField('phone', validators=[DataRequired()])
    email = StringField('email', validators=[DataRequired()])
    submit = SubmitField('注册')
